/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package FrameWork;

import javax.microedition.lcdui.Image;

/**
 *
 * @author ThanhTri
 */
public class Font_Small extends MySpriteFont {

    public Font_Small(Image m_Image) {
        super(m_Image);
        m_HeightFont = 9;
        int array[] = {
              0,  6, 10, 15, 21, 27, 33, 39, 45, 51,
             57, 61, 67, 77, 85, 92, 99,106,112,120,
            127,134,139,144,151,158,164,172,179,186,
            193,200,207,213,220,227,234,241,248,255,
            262,269
              };
        m_ArrayWidth = array;
    }
    public int ChoseFrame (int _C){
        if (_C==32){
               return 40;
        }
        if (_C==95){
               return 39;
        }
        if (_C==61){
               return 10;
        }
        if (_C==63){
            return 11;
        }
        if (_C==64){
            return 12;
        }
        if (_C<=57 && _C >=48 ){
            return (_C-48);
         }
        if (_C<=90 && _C>=65 ){
             return (_C-65+13);
        }
        if (_C<=122  && _C >=97 ){
             return (_C-97+13);
        }
        return 0;
    }
}
